package com.qiyeji.real_estate.entity;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

@HeadRowHeight(50)// 设置表头高度
@ColumnWidth(40)
public class customer {
    @ExcelProperty(value = {"客户编号"}, index = 0)
    private String cid;

    @ExcelProperty(value = {"客户名"}, index = 1)
    private String cname;

    @ExcelProperty(value = {"联系方式"}, index = 2)
    private String tel;

    @ExcelProperty(value = {"QQ"}, index = 3)
    private String qq;

    @ExcelProperty(value = {"电子邮件"}, index = 4)
    private String email;

    @ExcelProperty(value = {"一级单位"}, index = 5)
    private String primaryunit;

    @ExcelProperty(value = {"二级单位"}, index = 6)
    private String secondaryunit;

    @ExcelProperty(value = {"三级单位"}, index = 7)
    private String tertiaryunit;

    public customer(String cid, String cname, String tel, String qq, String email, String primaryunit, String secondaryunit, String tertiaryunit) {
        this.cid = cid;
        this.cname = cname;
        this.tel = tel;
        this.qq = qq;
        this.email = email;
        this.primaryunit = primaryunit;
        this.secondaryunit = secondaryunit;
        this.tertiaryunit = tertiaryunit;
    }

    public customer() {
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq == null ? null : qq.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPrimaryunit() {
        return primaryunit;
    }

    public void setPrimaryunit(String primaryunit) {
        this.primaryunit = primaryunit == null ? null : primaryunit.trim();
    }

    public String getSecondaryunit() {
        return secondaryunit;
    }

    public void setSecondaryunit(String secondaryunit) {
        this.secondaryunit = secondaryunit == null ? null : secondaryunit.trim();
    }

    public String getTertiaryunit() {
        return tertiaryunit;
    }

    public void setTertiaryunit(String tertiaryunit) {
        this.tertiaryunit = tertiaryunit == null ? null : tertiaryunit.trim();
    }

    @Override
    public String toString() {
        return "customer{" +
                "cid='" + cid + '\'' +
                ", cname='" + cname + '\'' +
                ", tel='" + tel + '\'' +
                ", qq='" + qq + '\'' +
                ", email='" + email + '\'' +
                ", primaryunit='" + primaryunit + '\'' +
                ", secondaryunit='" + secondaryunit + '\'' +
                ", tertiaryunit='" + tertiaryunit + '\'' +
                '}';
    }
}